PopupWidget

class PopupWidget : ParentElement, Narratable, Drawable, SuggestionWindowListener

A widget comprised of a collection of child elements that "Pops up" onto screens that implement me.fzzyhmstrs.fzzy_config.screen.PopupParentElement

Multiple popups can stack onto PopupParentElements. They display last-added in front, first added in back, and are removed in reverse of the order they were added (First In Last Out)

Author

fzzyhmstrs

Since

0.2.0

See also

Types

Link copied to clipboard
object Api

API for PopupWidgets. Add, remove, and interact with popups here.

Link copied to clipboard
class Builder @JvmOverloads constructor(title: Text, spacingW: Int = 4, spacingH: Int = spacingW)

Builds a PopupWidget from provided Elements and layout

Functions

Link copied to clipboard
open override fun appendNarrations(builder: NarrationMessageBuilder)
Link copied to clipboard
fun applyBlur(delta: Float)
Link copied to clipboard
fun blur()
Link copied to clipboard
open override fun charTyped(chr: Char, modifiers: Int): Boolean
Link copied to clipboard
open override fun children(): List<Element>
Link copied to clipboard
Link copied to clipboard
open override fun getFocused(): Element?
Link copied to clipboard
@Nullable
open override fun getFocusedPath(): GuiNavigationPath?
Link copied to clipboard
open fun getNavigationFocus(): ScreenRect
Link copied to clipboard
Link copied to clipboard
@Nullable
open override fun getNavigationPath(navigation: GuiNavigation): GuiNavigationPath?
Link copied to clipboard
open fun hoveredElement(mouseX: Double, mouseY: Double): Optional<Element>
Link copied to clipboard
open override fun isDragging(): Boolean
Link copied to clipboard
open override fun isFocused(): Boolean
Link copied to clipboard
open override fun isMouseOver(mouseX: Double, mouseY: Double): Boolean
Link copied to clipboard
open override fun keyPressed(keyCode: Int, scanCode: Int, modifiers: Int): Boolean
Link copied to clipboard
open override fun keyReleased(keyCode: Int, scanCode: Int, modifiers: Int): Boolean
Link copied to clipboard
open override fun mouseClicked(mouseX: Double, mouseY: Double, button: Int): Boolean
Link copied to clipboard
open override fun mouseDragged(mouseX: Double, mouseY: Double, button: Int, deltaX: Double, deltaY: Double): Boolean
Link copied to clipboard
open fun mouseMoved(mouseX: Double, mouseY: Double)
Link copied to clipboard
open override fun mouseReleased(mouseX: Double, mouseY: Double, button: Int): Boolean
Link copied to clipboard
open override fun mouseScrolled(mouseX: Double, mouseY: Double, horizontalAmount: Double, verticalAmount: Double): Boolean
Link copied to clipboard
fun onClose()
Link copied to clipboard
fun position(screenWidth: Int, screenHeight: Int)
Link copied to clipboard
open override fun render(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float)
Link copied to clipboard
open override fun setDragging(dragging: Boolean)
Link copied to clipboard
open override fun setFocused(focused: Boolean)
open override fun setFocused(focused: Element?)
Link copied to clipboard
open override fun setSuggestionWindowElement(element: Element?)